home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Commands_List / File_Management / Protect < prev    next >
Encoding:
Text File  |  1993-08-08  |  1.2 KB  |  41 lines

  1. Command Name : Protect
  2.  
  3. Function : Alter a file's protection bits
  4.  
  5. Arguments : <file> [+|-] [<flags>]
  6.  
  7. Location : C directory
  8.  
  9. Every file has a set of `protection bits'.  These tell your Amiga what 
  10. properties the file has.  The protection bits are :
  11.  
  12. s - means that the file is a script.  You don't have to Execute the file,
  13.     just enter its name at a CLI prompt.
  14.  
  15. a - means that the file is archived - a program called LHA is the most 
  16.     common archiver.  It is a big file containing many programs that need to
  17.     be decompressed onto another disk before use.
  18.  
  19. r - readable.  If this bit is set then the file can be read.
  20.  
  21. w - if this bit is set then the file can be written to. 
  22.  
  23. e - this bit means executable.  If a program is a text file it cannot be run
  24.     so this bit is not set.  A CLI command is executable so this bit is set.
  25.  
  26. d - deletable.  You can make a file protected from deletion by removing this
  27.     flag.
  28.  
  29. The status of these flags can be seen by Listing a file.  To add a 
  30. protection bit use the + argument or to remove one use the - argument.
  31.  
  32. Examples
  33.  
  34. Protect Textfile -d
  35.  
  36.         Sets the deletion bit of Textfile to 0, meaning it cannot be deleted
  37.  
  38. Protect Textfile +d
  39.  
  40.         Sets the deletion bit of Textfile to 1, so it can be deleted.
  41.